var advanceIncome = function(that){
	return new Promise((resolve, reject) => {
		that.$util.sendRequest(that,"app.distribution.advance.income","POST",0,null).then(res=>{resolve(res)}).catch(err=>{reject(err)});
	});
};
var childLst = function(that,data){
	return new Promise((resolve, reject) => {
		that.$util.sendRequest(that,"app.distribution.child.lst","POST",1,data).then(res=>{resolve(res)}).catch(err=>{reject(err)});
	});
};
var orderLst = function(that,data){
	return new Promise((resolve, reject) => {
		that.$util.sendRequest(that,"app.distribution.order.lst","POST",1,data).then(res=>{resolve(res)}).catch(err=>{reject(err)});
	});
};
var qrcode = function(that){
	return new Promise((resolve, reject) => {
		that.$util.sendRequest(that,"app.distribution.qrcode","POST",1,null).then(res=>{resolve(res)}).catch(err=>{reject(err)});
	});
};

module.exports = {
	advanceIncome: advanceIncome,
	childLst: childLst,
	orderLst: orderLst,
	qrcode: qrcode
}
